package com.wzy.heap;

import java.util.Random;

/**
 * 描述  :
 * 创建人:    Wzy
 * 创建时间: 2020-05-24  13:59
 */
public class Test {
    public static void main(String[] args) {
        String s = new String("hello");
        String s1 = "hello";
        System.out.println(s == s1);
        String s2 = new String("hello") + new String("world");
        s2.intern();
        String s3 = "helloworld";
        System.out.println(s2 == s3);
        Integer integer = Integer.valueOf(1);


    }

    public static char[] getPassword() {
        char[] chars = new char[6];
        Random random = new Random();
        for (int i = 0; i < 6; i++) {
            chars[i] = (char) ('0' + random.nextInt(10));
        }
        return chars;

    }
}
